<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="UsuarioEdit.aspx.cs" Inherits="UsuarioEdit"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:UpdatePanel runat="server" id="UpdatePanelUsuario">   
    <ContentTemplate>
        <table border="0">
            <tr>
                <td class="labelPageTitle" colspan="2" align="left">
                    <br />
				    <asp:Label id="lblTituloProveedor" runat="server" Text="<%$ Resources:Resource,lblTituloUsuario %>"></asp:Label> 
			    </td>
            </tr>
        </table>
        <table border="0">                            
            <tr>
                <td>
                    <label class="clsMandatory">*</label>
                    <span class="label">=</span>
                    <asp:Label ID="lblMsgRequired" runat="server" CssClass="label" Text="<%$ Resources:Resource,lblRequerido %>"></asp:Label></td>
            </tr>                            
        </table>
        <table width="100%" border="0" runat="server" id="TablaUsuario">            
                <tr>
                    <td class="TitleHead" colspan="2"></TD>
                </tr>
                <tr>
                    <td style="width:100px">
                        <asp:Label id="lblNombre" runat="server" CssClass="label" Text="<%$ Resources:Resource,lblUsuarioNombre %>"></asp:Label> 
                        <asp:RequiredFieldValidator id="rfvNombre" runat="server" CssClass="clsMandatory" ControlToValidate="txtNombre">*</asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:TextBox id="txtNombre" runat="server" CssClass="textContent" MaxLength="100" Width="250px" onkeypress="ingresoMayusculas();"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label id="lblLogin" runat="server" CssClass="label" Text="<%$ Resources:Resource,lblUsuarioLogin %>"></asp:Label> 
                        <asp:RequiredFieldValidator id="rfvLogin" runat="server" CssClass="clsMandatory" ControlToValidate="txtLogin">*</asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:TextBox id="txtLogin" runat="server" CssClass="textContent" MaxLength="100" onkeypress="ingresoMayusculas();"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label id="lblContrasena" runat="server" CssClass="label" Text="<%$ Resources:Resource,lblUsuarioContrasena %>"></asp:Label> 
                        <asp:RequiredFieldValidator id="rfvContrasena" runat="server" CssClass="clsMandatory" ControlToValidate="txtContrasena">*</asp:RequiredFieldValidator>
                    </td>
                    <td>
                        <asp:TextBox id="txtContrasena" TextMode="Password" runat="server" CssClass="textContent" MaxLength="100"></asp:TextBox>
                    </td>
                </tr>                                                
                <TR>
                    <TD>
                        <asp:Label id="lblEmail" runat="server" CssClass="label" Text="<%$ Resources:Resource,lblUsuarioEmail %>"></asp:Label> 
                        <asp:RegularExpressionValidator id="revEmail" runat="server" CssClass="clsMandatory" ControlToValidate="txtEmail" ValidationExpression="^[\w-]+(?:\.[\w-]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$">*</asp:RegularExpressionValidator>
                    </TD>
                    <TD>
                        <asp:TextBox id="txtEmail" runat="server" CssClass="textContent" MaxLength="50" Width="250px"></asp:TextBox>
                    </TD>
                </TR>       
                                                            
                <TR>
                    <TD> 
                        <asp:Label id="lblPerfil" CssClass="label" runat="server" Text="<%$ Resources:Resource,lblUsuarioPerfilNombre %>"></asp:Label>
                    </TD>
                    <TD>
                        <asp:DropDownList id="ddlPerfil" runat="server" CssClass="combo" Width="157px"></asp:DropDownList>
                    </TD>
                </TR>
                <TR>
                    <TD> 
                        <asp:Label id="lblEstado" CssClass="label" runat="server" Text="Estado"></asp:Label>
                    </TD>
                    <TD>
                        <asp:CheckBox id="chkEstado" runat="server" CssClass="label"></asp:CheckBox>
                    </TD>
                </TR>
                 <TR>
                    <TD align="center" colspan="2"></TD>
                 </TR>
                 <TR>
                    <TD align="center" colspan="2">
                        <asp:Button id="btoGrabar" onclick="btoGrabar_Click" CssClass="btn" Text="<%$ Resources:Resource,btnGrabar %>" Runat="server"></asp:Button>&nbsp; 
                        <asp:Button id="btoCancelar" onclick="btoCancelar_Click" CssClass="btn" Text="<%$ Resources:Resource,btnCancelar %>" Runat="server" CausesValidation="False"></asp:Button>
                    </TD>
                 </TR>             
         </TABLE>
</ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

